xquery version "1.0";

for $line in doc("airline.xml") /airline_list/airline
where $line/DESTINATION = "DTW"
order by $line/flightNumber
return $line